<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class class_model extends CI_Model{

	function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
	
	function get_all_class(){
		$query  = $this->db->get('drawing_class');
		return $query->result();
	}
	
	function get_class_by_id($class_id){
		$this->db->select('*');
		$this->db->from('drawing_class');
		$this->db->where('drawing_class_id',$class_id);
		$query  = $this->db->get();
		
		return $query->row();
	}
}

?>